# coding:utf-8
import tkinter as tk

import ttkbootstrap as tkBoot

from util.ui_util import create_close_btn


class AboutTab(tkBoot.Frame):
    def __init__(self, notebook):
        super().__init__(notebook)
        self.notebook = notebook

    def initFrame(self):
        create_close_btn(self, "aboutTab")

        tkBoot.Label(self, text="简易的点名程序", font=('微软雅黑', 16, "bold")).pack(side=tk.TOP, pady=(50, 0))
        tkBoot.Label(self, text="包含点名模块，新建班级模板，新建学生模块", font=('微软雅黑', 16)).pack()
        tkBoot.Label(self, text="Copyright©2023,Will Chen", font=('微软雅黑', 20), bootstyle="info").pack(side=tk.BOTTOM, pady=(0, 80))

        self.notebook.add(self, text="关于")
        self.notebook.select(self)

